<template>
    <view class="container" :style="themeColor">
        <view class="title">请选择您的退单类型</view>
        <view class="list">
            <view @click="goUrl('/pages_shop/packet/return/billList')" v-if="getAppSet().billReturn">
                <view class="flex">
                    <image src="/pages_shop/static/img/retrun1.png"></image>
                    <view>有单退货</view>
                </view>
                <view class="icon">
                    <uni-icons class="icon-right" size="28" type="arrowright" customIcons="icon-gray-2"></uni-icons>
                </view>
            </view>
            <view @click="goUrl('/pages_shop/packet/return/nobill')" v-if="getAppSet().noBillReturn">
                <view class="flex">
                    <image src="/pages_shop/static/img/retrun2.png"></image>
                    <view>无单退货</view>
                </view>
                <view class="icon">
                    <uni-icons class="icon-right" size="28" type="arrowright" customIcons="icon-gray-2"></uni-icons>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
export default {
    components: {},
    data() {
        return {}
    },
    methods: {
        goUrl(url) {
            this.easyGoTo(url)
        },
    },
    mounted() {
        if (this.getSupplierMode() == 1) {
            //供应商没有无单退货，直接进入退货列表
            // this.easyRemoveCurrentGoTo('/pages_shop/packet/return/billList')
        }
    },
    computed: {},
}
</script>

<style lang="scss">
page {
    background: #f5f5f5;
}

.container {
    padding: 0rpx $app-page-padding;
    font-size: 32rpx;
    color: #333333;
}

.title {
    padding: 50rpx 0 35rpx 0;
}
.list {
    & > view {
        padding: 40rpx 50rpx 40rpx 30rpx;
        background: #ffffff;
        border-radius: 16rpx;
        margin-bottom: 20rpx;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .flex {
        display: flex;
        align-items: center;
        font-weight: 500;
        image {
            width: 108rpx;
            height: 108rpx;
            margin-right: 35rpx;
        }
    }
    .icon {
        width: 40rpx;
        height: 40rpx;
        background: #ebebeb;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
</style>
